// 加载table 数据
$(function(){
    $("#dataTable").bootstrapTable({ 
    	url: "/promotion/turntable_list.json?random=" + Math.random(),
    	method:"get",
    	pagination:true,
    	sidePagination:"server",
    	cache:false,
    	queryParams: function(params) {
            return $.extend({}, params, parseJson(decodeURIComponent($("#dataForm").serialize())));     
        }
   }); 
 })
 
 //查询
function findData(){
	
	$("#dataTable").bootstrapTable("refresh",{} ); 
}


function orderStatusFormatter(value, row, index){
	if(row.PRIZE == 0 ){
		return "未中奖";
	}else if(row.PRIZE == 1 ){
		return "球球会员";
	}else if(row.PRIZE == 2 ){
		return "摇杆";
	}else if(row.PRIZE == 3 ){
		return "小号";
	}else if(row.PRIZE == 4 ){
		return "CDK";
	}else if(row.PRIZE == 5 ){
		return "粉丝×100";
	}else if(row.PRIZE == 6 ){
		return "照片点赞";
	}
	
}